<script setup lang="ts">
import type { IconifyIcon } from '@iconify/vue'

interface Props {
  icon?: string | IconifyIcon
  size?: number | string
  color?: string
}
withDefaults(defineProps<Props>(), {
  size: 20,
})
</script>

<template>
  <n-icon :size="size" :color="color">
    <slot><svg-icon v-if="icon" :icon="icon" /></slot>
  </n-icon>
</template>

<style scoped></style>
